package com.youlai.boot.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.youlai.boot.common.annotation.DataPermission;
import com.youlai.boot.system.model.entity.SpotCount;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.system.model.form.SpotCountForm;
import com.youlai.boot.system.model.query.SpotCountQuery;
import com.youlai.boot.system.model.vo.SpotCountExcelVO;
import com.youlai.boot.system.model.vo.SpotCountVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 统计Mapper接口
 *
 * @author lwb
 * @since 2025-07-01 22:00
 */
@Mapper
public interface SpotCountMapper extends BaseMapper<SpotCount> {

    /**
     * 获取统计分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return
     */
    @DataPermission(deptAlias = "a", userAlias = "a")
    Page<SpotCountVO> getSpotCountPage(Page<SpotCountVO> page, SpotCountQuery queryParams);

    /**
     *
     * @param queryParams
     * @return
     */
    @DataPermission(deptAlias = "a", userAlias = "a")
    List<SpotCountExcelVO> exportList(@Param("queryParams")SpotCountQuery queryParams);

    /**
     *
     * @param queryParams
     * @return
     */
    @DataPermission(deptAlias = "a", userAlias = "a")
    List<SpotCountForm> getCount(@Param("queryParams")SpotCountQuery queryParams);

    /**
     *
     * @param id
     * @return
     */
    SpotCountForm getSpotCountFormData(Long id);
}
